package com.baor.controller;

import com.baor.domain.conf.SeparateConf;
import com.baor.service.SeparateConfService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/separateConf")
public class SeparateConfController {

    @Autowired
    private SeparateConfService separateConfService;
    @RequestMapping("/separateConfInfo")
    public AjaxResult<?> separateConfInfo(@RequestBody SeparateConf separateConf) {
        return separateConfService.separateConfInfo(separateConf);
    }

    @RequestMapping("/updateSeparateConf")
    public AjaxResult<?> updateSeparateConf(@RequestBody SeparateConf separateConf) {
        return separateConfService.updateSeparateConf(separateConf);
    }
}
